package com.yuanian.timingwheel.test;

import org.springframework.stereotype.Component;

import java.io.Serializable;

@Component
public class Person implements Serializable {

    public void run(String teacher) {
        try {
            Thread.sleep(1);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        System.out.println("-------run----------" + teacher);
    }

    public void run1() {
        System.out.println("-------run1----------");
    }

    public Person() {
    }
}
